package day05;

import org.junit.Test;

public class ClassLoaderTest {

    @Test
    public void test1(){
        ClassLoader classLoader = ClassLoaderTest.class.getClassLoader();
        System.out.println(classLoader);
        ClassLoader parent = classLoader.getParent();
        System.out.println(parent);
        ClassLoader parent1 = parent.getParent();
        System.out.println(parent1);

    }

    @Test
    public void test2() throws IllegalAccessException, InstantiationException {
        Class clazz = Person1.class;
        Object o = clazz.newInstance();
        System.out.println(o);

    }

}
